3.1.37 \(\int \frac {3+2 x}{\sqrt {-3-4 x-x^2} (3+4 x+2 x^2)} \, dx\) [37]

Optimal. Leaf size=17 \[ \tanh ^{-1}\left (\frac {x}{\sqrt {-3-4 x-x^2}}\right ) \]

[Out]

arctanh(x/(-x^2-4*x-3)^(1/2))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {1041, 212} \begin {gather*} \tanh ^{-1}\left (\frac {x}{\sqrt {-x^2-4 x-3}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(3 + 2*x)/(Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]

[Out]

ArcTanh[x/Sqrt[-3 - 4*x - x^2]]

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 1041

Int[((g_) + (h_.)*(x_))/(((a_) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbol]
 :> Dist[g, Subst[Int[1/(a + (c*d - a*f)*x^2), x], x, x/Sqrt[d + e*x + f*x^2]], x] /; FreeQ[{a, b, c, d, e, f,
 g, h}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[e^2 - 4*d*f, 0] && EqQ[b*d - a*e, 0] && EqQ[2*h*d - g*e, 0]

Rubi steps

\begin {align*} \int \frac {3+2 x}{\sqrt {-3-4 x-x^2} \left (3+4 x+2 x^2\right )} \, dx &=3 \text {Subst}\left (\int \frac {1}{3-3 x^2} \, dx,x,\frac {x}{\sqrt {-3-4 x-x^2}}\right )\\ &=\tanh ^{-1}\left (\frac {x}{\sqrt {-3-4 x-x^2}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.16, size = 17, normalized size = 1.00 \begin {gather*} \tanh ^{-1}\left (\frac {x}{\sqrt {-3-4 x-x^2}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(3 + 2*x)/(Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]

[Out]

ArcTanh[x/Sqrt[-3 - 4*x - x^2]]

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(93\) vs. \(2(15)=30\).
time = 0.14, size = 94, normalized size = 5.53

method result size
trager \(-\frac {\ln \left (\frac {2 x \sqrt {-x^{2}-4 x -3}+4 x +3}{2 x^{2}+4 x +3}\right )}{2}\) \(37\)
default \(-\frac {\sqrt {3}\, \sqrt {4}\, \sqrt {\frac {3 x^{2}}{\left (-\frac {3}{2}-x \right )^{2}}-12}\, \arctanh \left (\frac {3 x}{\left (-\frac {3}{2}-x \right ) \sqrt {\frac {3 x^{2}}{\left (-\frac {3}{2}-x \right )^{2}}-12}}\right )}{6 \sqrt {\frac {\frac {x^{2}}{\left (-\frac {3}{2}-x \right )^{2}}-4}{\left (1+\frac {x}{-\frac {3}{2}-x}\right )^{2}}}\, \left (1+\frac {x}{-\frac {3}{2}-x}\right )}\) \(94\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3+2*x)/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x,method=_RETURNVERBOSE)

[Out]

-1/6*3^(1/2)*4^(1/2)/((x^2/(-3/2-x)^2-4)/(1+x/(-3/2-x))^2)^(1/2)/(1+x/(-3/2-x))*(3*x^2/(-3/2-x)^2-12)^(1/2)*ar
ctanh(3*x/(-3/2-x)/(3*x^2/(-3/2-x)^2-12)^(1/2))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3+2*x)/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x, algorithm="maxima")

[Out]

integrate((2*x + 3)/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 56 vs. \(2 (15) = 30\).
time = 0.33, size = 56, normalized size = 3.29 \begin {gather*} -\frac {1}{4} \, \log \left (-\frac {2 \, \sqrt {-x^{2} - 4 \, x - 3} x + 4 \, x + 3}{x^{2}}\right ) + \frac {1}{4} \, \log \left (\frac {2 \, \sqrt {-x^{2} - 4 \, x - 3} x - 4 \, x - 3}{x^{2}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3+2*x)/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x, algorithm="fricas")

[Out]

-1/4*log(-(2*sqrt(-x^2 - 4*x - 3)*x + 4*x + 3)/x^2) + 1/4*log((2*sqrt(-x^2 - 4*x - 3)*x - 4*x - 3)/x^2)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {2 x + 3}{\sqrt {- \left (x + 1\right ) \left (x + 3\right )} \left (2 x^{2} + 4 x + 3\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3+2*x)/(2*x**2+4*x+3)/(-x**2-4*x-3)**(1/2),x)

[Out]

Integral((2*x + 3)/(sqrt(-(x + 1)*(x + 3))*(2*x**2 + 4*x + 3)), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs. \(2 (15) = 30\).
time = 3.15, size = 98, normalized size = 5.76 \begin {gather*} \frac {1}{2} \, \log \left (\frac {2 \, {\left (\sqrt {-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac {3 \, {\left (\sqrt {-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 1\right ) - \frac {1}{2} \, \log \left (\frac {2 \, {\left (\sqrt {-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac {{\left (\sqrt {-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3+2*x)/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x, algorithm="giac")

[Out]

1/2*log(2*(sqrt(-x^2 - 4*x - 3) - 1)/(x + 2) + 3*(sqrt(-x^2 - 4*x - 3) - 1)^2/(x + 2)^2 + 1) - 1/2*log(2*(sqrt
(-x^2 - 4*x - 3) - 1)/(x + 2) + (sqrt(-x^2 - 4*x - 3) - 1)^2/(x + 2)^2 + 3)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.06 \begin {gather*} \int \frac {2\,x+3}{\sqrt {-x^2-4\,x-3}\,\left (2\,x^2+4\,x+3\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x + 3)/((- 4*x - x^2 - 3)^(1/2)*(4*x + 2*x^2 + 3)),x)

[Out]

int((2*x + 3)/((- 4*x - x^2 - 3)^(1/2)*(4*x + 2*x^2 + 3)), x)

________________________________________________________________________________________